import request from '@/utils/request'

const api_name = '/hr/service/personal-info'

export default {
  get_personalInfo() {
    return request({
      url: `${api_name}/personalInfo`,
      method: 'get'
    })
  },
  add_personalInfo(personalInfo) {
    return request({
      url: `${api_name}/personalInfo`,
      method: 'post',
      data: personalInfo
    })
  },
  update_personalInfo(personalInfo) {
    return request({
      url: `${api_name}/personalInfo`,
      method: 'put',
      data: personalInfo
    })
  }
}
